package com.joker.orange.domain.bo;

import com.joker.common.core.domain.BaseEntity;
import com.joker.common.core.validate.AddGroup;
import com.joker.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.math.BigDecimal;

/**
 * 充值记录业务对象 t_diamond_consume_record
 *
 * @author Joker
 * @date 2024-06-09
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class DiamondConsumeRecordBo extends BaseEntity {

    /**
     * 唯一标识
     */
    @NotNull(message = "唯一标识不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 消费名称
     */
    @NotBlank(message = "消费名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String consumeName;

    /**
     * 消费钻石
     */
    @NotNull(message = "消费钻石不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal consumeDiamond;

    /**
     * 消费类型（0-充值、1-支出）
     */
    @NotNull(message = "消费类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal consumeType;

    /**
     * 备注
     */
    private String remark;

    /**
     * 分页大小
     */
    private Integer pageSize;

    /**
     * 当前页数
     */
    private Integer pageNum;


}
